<script type="text/template" id="dialogPresonalizeTemplate">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title"><%= APP.getTrans('PERSONALIZE', 'TITLE') %> (<%= name %>)</h4>
      </div>
      <form id="personalizeTileForm" class="form-horizontal" role="form">
        <div class="errorBox"></div>
        <div class="modal-body">
          <div class="form-group">
            <label for="backgroundFile" class="col-xs-3 control-label"><%= APP.getTrans('PERSONALIZE', 'BACKGROUND') %>:</label>
            <div class="col-xs-9">
              <div id="bgContainer" <% if (userPulpit.background == null || userPulpit.background == '') { %>style="display: none;"<% } %>><img src="<%= userPulpit.background %>"></div>
              <input id="backgroundFilename" type="hidden" name="bg_filename" value="<%= userPulpit.backgroundDb %>" />
              <input type="file" id="backgroundFile" data-label="<%= APP.getTrans('PERSONALIZE', 'BACKGROUND_BTN') %>" />
            </div>
          </div>
          <div class="form-group">
            <label for="inputInfoCode" class="col-xs-3 control-label"><%= APP.getTrans('PERSONALIZE', 'VIEW') %>:</label>
            <div class="col-xs-9">
              <div class="btn-group" data-toggle="buttons">
                <label class="btn btn-primary">
                  <input type="radio" name="size" id="option1" value="0"> <%= APP.getTrans('PERSONALIZE', 'STANDARD') %>
                </label>
                <label class="btn btn-primary">
                  <input type="radio" name="size" id="option2" value="1"> <%= APP.getTrans('PERSONALIZE', 'HORIZONTAL') %>
                </label>
                <label class="btn btn-primary">
                  <input type="radio" name="size" id="option3" value="2"> <%= APP.getTrans('PERSONALIZE', 'VERTICAL') %>
                </label>
              </div>
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-primary" data-dismiss="modal"><%= APP.getTrans('PERSONALIZE', 'CANCEL') %></button>
          <button id="addInfoForm-add" type="submit" class="btn btn-default"><%= APP.getTrans('PERSONALIZE', 'SAVE') %></button>
        </div>
      </form>
    </div>
  </div>
</script>